package com.cby.operation.sdk

/**
 * @description: UI上的一些常量，fragment的tag，UI的通用文案
 *
 * @author ChenBaoyang
 * @date 7/23/21 11:22
 */
const val TAG_FRAGMENT_GAME_MAINTENANCE: String = "com.operation.sdk:initial.maintenance"
const val TAG_FRAGMENT_LOGIN_AUTH = "com.operation.sdk:login.auth"
const val TAG_FRAGMENT_LOGIN_WEB = "com.operation.sdk:login.web"
const val TAG_FRAGMENT_TIP_DOWNLOAD = "com.operation.sdk:tip.download"
const val TAG_FRAGMENT_TIP_BANNED = "com.operation.sdk:tip.banned"
const val TAG_FRAGMENT_ANTI = "com.operation.sdk:anti"
const val TAG_FRAGMENT_REAL_NAME = "com.operation.sdk:real.name"
const val TAG_FRAGMENT_PAY_SUBMIT = "com.operation.sdk:pay.submit"
const val TAG_FRAGMENT_PAY_RESULT = "com.operation.sdk:pay.result"
const val TAG_FRAGMENT_PAY_LIMIT = "com.operation.sdk:pay.limit"
const val TAG_FRAGMENT_PAY_RETRY = "com.operation.sdk:pay.retry"


const val STRING_PAY_SUCCESS = "支付成功"
const val STRING_PAY_FAILED = "支付失败"

const val STRING_ORDER_ID = "订单编号"
const val STRING_GOODS_NAME = "商品名称"
const val STRING_PAY_MONEY = "支付金额"
const val STRING_PAY_TIME = "支付时间"
const val STRING_PAY_FAILED_REASON = "失败原因"

/**
 * 获取带有单位的价格字符串
 * @param money Int
 */
fun getPayMoneyString(money: Int) : String{
    return "${money}元"
}

const val STRING_PAY_LIMIT_DETAIL = "查看详情>>"

const val STRING_ORDER_PROBLEM = "订单有疑问？"

/**
 * 获取带有单位的价格字符串
 * @param qq String
 */
fun getContactString(qq: String) : String{
    return "订单有疑问，可以联系QQ：${qq}"
}

const val STRING_PAY_CHANNEL_WECHAT = "微信支付"
const val STRING_PAY_CHANNEL_ALIPAY = "支付宝支付"
const val STRING_PAY_CHANNEL_QQ = "qq钱包支付"

/**
 * web页面的js接口的定义
 */
const val JS_INTERFACE_NAME = "HykbJsInterface"

/**
 * web登录页面地址
 *
 * 测试环境：[http://t.3839.com/sdk/login.php?orientaion=%s]
 * 正式环境：[https://www.3839.com/sdk/login.php?orientaion=%s]
 */
fun getWebLoginUrl(orientation: Int): String{
    return "https://www.3839.com/sdk/login.php?orientaion=${orientation}"
}


/**
 * web实名认证地址
 *
 * 测试环境：[http://t.3839.com/sdk/idcard.php?orientaion=%s&gameId=%s&uid=%s&type=%s&token=%s]
 * 正式环境：[https://www.3839.com/sdk/idcard.php?orientaion=%s&gameId=%s&uid=%s&type=%s&token=%s]
 */
fun getWebRealNameUrl(orientation: Int, gameId: String, uid: String, type: String, token: String): String{
    return "https://www.3839.com/sdk/idcard.php?orientaion=${orientation}&gameId=${gameId}&uid=${uid}&type=${type}&token=${token}"
}